LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE    := libsqlite_static 
LOCAL_SRC_FILES := ../../sqlite/libs/libsqlite_static.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := libicui18n_static 
LOCAL_SRC_FILES := ../../sqlite/libs/libicui18n_static.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := libicuuc_static 
LOCAL_SRC_FILES := ../../sqlite/libs/libicuuc_static.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../sqlite/include

LOCAL_SRC_FILES := nim_index_jni.cpp \
				   log/log.c \
				   tokenizer/reg.c \
				   tokenizer/tok.c \
				   version/version.cpp \
				   core/trans.cpp \
				   core/global.cpp \
				   core/table.cpp \
				   core/record.cpp \
				   core/exception.cpp \
				   core/tokenizer.cpp
				   
#LOCAL_CFLAGS    := -DTOKENIZER_DEBUG		   
				   			   
LOCAL_MODULE    := nimindex

LOCAL_LDLIBS    := -llog

LOCAL_STATIC_LIBRARIES := libsqlite_static libicui18n_static libicuuc_static

include $(BUILD_SHARED_LIBRARY)